package com.automapper.query;

import com.automapper.criterion.Criterion;

public interface Criteria {

	public Criteria add(Criterion expression);
	
	public Criteria setMaxResults(int maxResults);
	
	/**
	 * 级联查询
	 * @param clazz 级联查询的对象
	 * @param tableName 表名
	 * @param alias 别名
	 * @return
	 */
	public Criteria cascade(Class<?> clazz, String tableName, String alias);
}
 